//
//  UserPayInfoModel.swift
//  HappyEat
//
//  Created by 张继强 on 17/1/24.
//  Copyright © 2017年 陌路是我. All rights reserved.
//

import UIKit
import SwiftyJSON

class UserPayInfoModel: NSObject {
    var needPerson:String?
    var userBalance:String?
    var userCoupons:[UserCouponModel]?
    init(data:JSON) {
       self.needPerson = data["needPerson"].stringValue
        self.userBalance = data["userBalance"].stringValue
        if data["userCoupons"].count == 0 {
            return
        }else{
            for item in  data["userCoupons"] {
                let model:UserCouponModel = UserCouponModel.init(data: JSON(item))
                self.userCoupons?.append(model)
            }
        }
    }
}
